.contacts {
  height: 500px;
  max-height: 70vh;
}

.placeholder {
  align-items: center;
  color: #bbb;
  display: flex;
  font-size: 16px;
  height: 100%;
  justify-content: center;
  letter-spacing: 1px;
  padding-bottom: 100px;
  :global(.anticon) {
    font-size: 26px;
    margin-right: 10px;
  }
}

.contacts :global(.ant-empty) {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  margin: 0;
  padding-bottom: 100px;
}

.contact {
  align-items: center;
  border-bottom: 1px solid #eee;
  color: #222;
  cursor: pointer;
  display: flex;
  padding: 0 1em;
  transition: background-color 0.1s ease-in;

  &:hover {
    background-color: #fafafa;
  }

  .avatar {
    border-radius: 3px;
    border: 1px solid #eee;
    height: 42px;
    margin-right: 0.8em;
    width: 42px;
  }

  .main {
    flex: 1;
    overflow: hidden;
  }
  .name,
  .owner-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .name .tip-name {
    color: #aaa;
    font-size: 12px;
    margin-left: 0.5em;
  }
  .owner-name {
    color: #2f93f1;
    font-size: 12px;
    margin-top: 5px;
  }

  .side {
    flex-shrink: 0;
    padding-left: 1em;
    color: #999;
  }
}
